package com.yidu.t299.dao.chr;

import com.yidu.t299.domain.chr.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RecordsMapper {
    @Select("select record_id,record_name from record where record_id = #{recordId,jdbcType=INTEGER}")
    @Results({
            @Result(id = true,property = "recordId",column = "record_id"),
            @Result(property = "recordName",column = "record_name")
    })
    Record selectByPrimaryKey(Integer recordId);
}
